<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>下载</title>
<load href= "__JS__/jshelper.js" /> 
<script type="text/JavaScript">
				function workedit(id){
					window.location.href="__URL__/workedit/id/"+id;
				}
				function worksearch(id){
					window.location.href="__URL__/workdetail/id/"+id;
				}
				function workdelete(id,saveid){
					if (confirm("你确定要删除吗")==true)
						postwith('__URL__/workdelete',{id:id,saveid:saveid});
				}
				function show(){
									var tab=document.getElementById("tab");
									var tr=tab.getElementsByTagName("tr");
								for(var i=0;i<=tr.length;i++){
								if(i%2==0){
									tr[i].style.backgroundColor="#fff";
								}else{
									tr[i].style.backgroundColor="#f0f0f0";	
									}
								}
							}
					window.onload=show;
	</script>
	<load href="__JS__/jQuery/jquery.js" />
	<load href="__JS__/jQuery/jquery.form.js" />
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location=window.location.href;
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
</head>
<body bgcolor="#eeeeee">
	 <layout name="Auth:header" />
	 <iframe src="__URL__/menu" style="position:absolute; left:40px; top:350px; width:180px; height:190px;" frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no”></iframe>
	 <div  style="position:relative; top:-70px; left:240px; font-size:12px; width:60%;">
	当前位置：
	<a href='__APP__/index/index'>主页</a>>
	<a href='__URL__/index'>后台管理</a>>
	<a href='__URL__/classdetail'>教学班管理</a>>
	<a href='__URL__/classfile'>作业管理</a>>
	资料管理
	</div>
	<div id="work_Show" style="width:68%; position:relative; left:200px;" >
					<table width="100%" border="0" align="center" cellpadding="0px" cellspacing="0px">
						<thead  style=" font-weight:bold; font-size:12px; background-color:f0f0f0;">
							<tr id="table_work_show_title" height="35px">
								<td style="width:15%">作者</td>
								<td style="width:45%">标题</td>
								<td style="width:20%">发表时间</td>						
								<td style="width:50px">操作</td>								
							</tr>
						</thead>
						<load href"__PUBLIC__/js/list_show.js">
						<tbody id="tab">
							<volist name='list' id='vo' >
								<tr id="table_work_show" height="40px">
									<td style="display:none;">{$vo.id}</td>	<!--ID-->
									<td style="width:15%">{$vo.nname}</td><!--作者-->
									<td style="width:45%"><a href="__ROOT__{$vo.path}{$vo.savename}" target="_blank">{$vo.name}</a></td><!--标题-->
									<td style="width:20%;">{$vo.time}</td><!--发表时间-->
									
									<td style="width:180px;">
										<a href="#"  name='delete_work' onClick='workdelete({$vo.id},{$vo.saveid})' style=" font-size:12px;">删除</a>
										<!--<input name="delete_work" type="reset" onClick="workdelete({$vo.id},{$vo.courseid})" value="删除">-->							
									</td>
								</tr>
							</volist>
							
						</tbody>		
					</table><div class="green-black" align="right">{$page}</div>
				</div>
</body>
</html>